import {createApp} from "vue";
import notify from "./js/notification/index.js";

const app = createApp({
  data() {
    return {duration: 1000,};
  },
  methods: {
    showNotify() {
      this.$notify({
        title: '',
        message: '发现新版本点击更新！',
        duration: parseInt(this.duration),
        onClick:()=>{
          window.location.reload();
        },
      })
    }
  },
  mounted() {

  }
});
app.use(notify);
app.mount('#app');